-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add information linear and non-linear solver outputs #1076
Conversation
60aabc4
to
9e9b060
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very few comments, amazing work @hepap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing feature, and very few comments. Good job !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work ! Thanks ! :)
I only have a few minor comments to add.
source/solvers/navier_stokes_base.cc
Outdated
for (auto j = index_set_velocity[d].begin(); | ||
j != index_set_velocity[d].end(); | ||
j++) | ||
{ | ||
double dof_newton_update = newton_update[*j]; | ||
|
||
local_sum += dof_newton_update * dof_newton_update; | ||
|
||
if (dof_newton_update > local_max) | ||
{ | ||
local_max = dof_newton_update; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These loops on index_sets could be inlined if you wish :)
…and pressure components
Co-authored-by: Pierre Laurentin <[email protected]> Co-authored-by: Amishga Alphonius <[email protected]>
1051d53
to
f533a1f
Compare
I think it is ready to merge if the tests pass! The output was added for CH as well :) |
@hepap some tests are breaking, can you double check them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once CI is fixed, this is ready for a merge IMO
Should be alright now! |
) Description of the problem The console output of the non-linear solver in the NS solver was showing the the norms of the newton update without distinction between the velocity and pressure contributions. The final residual norm of the linear solver was not outputted, only the tolerance. Description of the solution Add the distinction between the velocity and pressure contributions in the non-linear solver output. Add the final value of the linear residual when verbosity is at verbose. If it is at extra verbose, the solver output the residual for each iteration (already implemented but not documented). How Has This Been Tested? A unit test was added. vector_problem.cc Co-authored-by: Pierre Laurentin <[email protected]> Co-authored-by: Amishga Alphonius <[email protected]> Former-commit-id: 4632e53
Description of the problem The console output of the non-linear solver in the NS solver was showing the the norms of the newton update without distinction between the velocity and pressure contributions. The final residual norm of the linear solver was not outputted, only the tolerance. Description of the solution Add the distinction between the velocity and pressure contributions in the non-linear solver output. Add the final value of the linear residual when verbosity is at verbose. If it is at extra verbose, the solver output the residual for each iteration (already implemented but not documented). How Has This Been Tested? A unit test was added. vector_problem.cc Co-authored-by: Pierre Laurentin <[email protected]> Co-authored-by: Amishga Alphonius <[email protected]> Former-commit-id: 4632e53
Description of the problem
Description of the solution
How Has This Been Tested?
A unit test was added.
Documentation
Add a comment for the extra verbose verbosity of the linear solver.